package com.example.demo.controller;

import com.example.demo.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebCon {

    @GetMapping("/hello")
    public Result hello(){
        return Result.success();
    }
    @GetMapping("/weather")
    public Result weather(){
        return Result.success("23.c");
    }
    @GetMapping("/num")
    public Result a(){
        return Result.success(100);
    }



}
